﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Game_MVC3.Models
{
    public class PollOption
    {

        [Key]
        public int ID { get; set; }

        [Display(Name = "Poll")]
        [Required(ErrorMessage = "Poll must be set.")]
        [Editable(false)]
        [Column("poll_id")]
        public int PollID { get; set; }

        [Required(ErrorMessage = "Option's Text cannot be empty.")]
        public string Text { get; set; }

        [Editable(false)]
        public int Votes { get; set; }


        public virtual Poll Poll { get; set; }
    }
}